#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	FILE* pf = fopen("test.txt", "r");
	if (pf == NULL)
	{
		perror(fopen);
		return 1;
	}
	char str[100];
	if (fgets(str, 100, pf))
		puts(str);
	fclose(pf);
	return 0;
}